
type Lang = 'zh-cn' | 'en'

type LangItem = {
    label: string
    value: string
}

export const useLangStore = defineStore('lang', () => {

    const lang = ref<Lang>('zh-cn')

    const list = ref<LangItem[]>([
        {
            label: '中文',
            value: 'zh-cn'
        },
        {
            label: 'English',
            value: 'en'
        }
    ])

    return {
        lang,
        list
    }
})
